package com.alibaba.algo.domain.user;

import com.alibaba.algo.core.base.BaseDomain;
import com.alibaba.algo.dao.user.SysLabelOrgMapper;
import com.alibaba.algo.entity.user.SysLabelOrg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 标签岗位关系
 *
 * @author Songtinghua
 * @create 2021-11-01 9:24
 **/
@Component
public class SysLabelOrgDomain extends BaseDomain<SysLabelOrg> {

    @Autowired
    SysLabelOrgMapper sysLabelOrgMapper;

    public SysLabelOrg selectByLabelIdAndOrgId(Long sysLabelId, Long sysOrgId) {
        return sysLabelOrgMapper.selectByLabelIdAndOrgId(sysLabelId, sysOrgId);
    }

    public void updateBySysLabelId(Long sysLabelId) {
        sysLabelOrgMapper.updateBySysLabelId(sysLabelId);
    }

    public List<SysLabelOrg> selectByLabelId(Long sysLabelId) {
        return sysLabelOrgMapper.selectByLabelId(sysLabelId);
    }
}
